
package com.tonyodev.fetch2;

import com.tonyodev.fetch2.database.DownloadInfo;
import com.tonyodev.fetch2core.Reason;

import java.util.List;

/**
 * Abstract implementation of FetchGroupObserver
 *
 * @since 2021-06-17
 */
public abstract class AbstractFetchGroupObserver implements FetchGroupObserver {
    /**
     * Method called when the download list has changed.
     *
     * @param data the download list.
     * @param triggerDownload the download that triggered the change.
     * @param reason the reason why onChanged was called for the triggered download.
     */
    @Override
    public void onChanged(List<DownloadInfo> data, DownloadInfo triggerDownload, Reason reason) {
    }

    /**
     * Method called when the data on the observing object has changed.
     *
     * @param data the data.
     * @param reason the reason why the onChanged method was called.
     */
    @Override
    public void onChanged(List<DownloadInfo> data, Reason reason) {
    }
}
